<div class="modal-body">
  <div>
    The <b>skip query</b> parameter is a python expression that skips the service if the
    boolean result is True. Skip is evaluated on a per device basis.
    <p></p>
    <p>
      This expression is evaluated to determine what to SKIP. If the expression
      identifies what to RUN, then negate the result.
    </p>
    <p>
      If a service is skipped, the <b>Skip Value</b> determines the workflow result
      (success = True, False). The default value is True (success on skip).
    </p>
    <p>
      <a
        href="/docs/automation/service_python_code/#substitution-fields"
        style="text-decoration: underline;"
        >Variable substitution</a
      >
      can be performed in this block.
    </p>

    <p>
      Example, run only for Cisco Transport devices (choose the match, then negate it to
      skip those devices that do NOT match).
      <textarea class="help-snippet" style="height: fit-content;">
not ("TRANSPORT" in device.subtype.upper()
and "IOS-XE" == device.operating_system.strip().upper()
and "CISCO" == device.vendor.strip().upper())</textarea
      >
    </p>

    <p>
      Example using get_var:
      <textarea class="help-snippet" style="height: fit-content;">
not get_var("upgrade_needed", device=device.name)
      </textarea>
    </p>
  </div>
</div>
